﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Masterpages/Main.master" AutoEventWireup="true"
    EnableEventValidation="false" CodeFile="UploadDocuments.aspx.cs" Inherits="User_Shares_UploadDocuments" %>
<%@ Register Src="../../Controls/FileUpload/MultipleFileUpload.ascx" TagName="MultipleFileUpload"
    TagPrefix="uc1" %>
<%@ Register Src="../../Controls/ContentHolder/Holder1.ascx" TagName="Holder1" TagPrefix="uc3" %>
<%@ Register Src="../../Controls/SelectContract.ascx" TagName="SelectContract" TagPrefix="uc4" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <style type="text/css">
        .style1
        {
            text-align: right;
            width: 100%;
            font-family: Tahoma;
            font-size: smaller;
            direction: rtl;
            width: 100%;                        
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <uc3:Holder1 ID="Holder11" runat="server" Title="ارسال مدارک">
        <ContentTemplate>
            <asp:MultiView ID="MultiViewAdmin" runat="server">
                <asp:View ID="View1" runat="server">
                    <div style="font-size: small;">
                        <uc4:SelectContract ID="SelectContract2" OnClick="SelectContract_Click" runat="server" />
                    </div>
                </asp:View>
                <asp:View ID="View3" runat="server">
                    <table>
                        <tr>
                            <td>
                                &nbsp;
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Label ID="Label13" runat="server" Text="شماره قرارداد :   " Font-Size="10pt"
                                    Font-Names="Tahoma"></asp:Label>
                                <div dir="rtl" style="width: auto">
                                    <asp:Label ID="LblConNum" runat="server" Font-Size="12pt" Font-Names="Tahoma"></asp:Label></div>
                            </td>
                            <td>
                                <asp:Label ID="Label14" runat="server" Text=" نام روستا :   " Font-Size="10pt"></asp:Label>
                                <div dir="rtl" style="width: auto">
                                    <asp:Label ID="lblvilname" runat="server" Font-Size="12pt" Font-Names="Tahoma"></asp:Label></div>
                            </td>
                            <td>
                                &nbsp;
                            </td>
                            <td>
                                <asp:Label ID="Label16" runat="server" Text="تاریخ قرارداد :  " Font-Size="10pt"
                                    Font-Names="Tahoma"></asp:Label>
                                <div dir="rtl" style="width: auto">
                                    <asp:Label ID="LblDate" runat="server" Font-Size="12pt" Font-Names="Tahoma"></asp:Label></div>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                &nbsp;
                            </td>
                            <td colspan="3">
                                &nbsp;
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <%--OnClick="Multifileupload1_click"--%>&nbsp;
                            </td>
                            <td>
                                <%--OnClick="Multifileupload1_click"--%>
                                <uc1:MultipleFileUpload ID="MultipleFileUpload1" runat="server" OnClick="Multifileupload1_click" />
                            </td>
                            <td>
                                &nbsp;
                            </td>
                            <td>
                                <div class="MainObject" dir="rtl">
                                    <asp:DataList ID="DataList1" runat="server" CellPadding="4" DataKeyField="ID" Font-Size="X-Small"
                                        ForeColor="#333333" HorizontalAlign="Left" OnSelectedIndexChanged="DataList1_SelectedIndexChanged"
                                        Width="200px">
                                        <EditItemStyle HorizontalAlign="Left" VerticalAlign="Bottom" />
                                        <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                                        <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                                        <HeaderTemplate>
                                            لیست مراحل
                                        </HeaderTemplate>
                                        <ItemStyle BackColor="#F7F6F3" Font-Size="10pt" ForeColor="#333333" HorizontalAlign="Left" />
                                        <ItemTemplate>
                                            <asp:LinkButton ID="LinkButton1" runat="server" CommandName="Select" ForeColor="Black"
                                                Text='<%# Eval( "Name" ) %>' CausesValidation="False"></asp:LinkButton>
                                            <asp:Label ID="LabelID" runat="server" Text='<%# Eval( "ID" ) %>' Visible="False"></asp:Label>
                                        </ItemTemplate>
                                        <SelectedItemStyle BackColor="#FFCCFF" Font-Bold="True" ForeColor="#333333" />
                                    </asp:DataList>
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                &nbsp;
                            </td>
                            <td colspan="3">
                                &nbsp;
                            </td>
                        </tr>
                        <tr>
                            <td>
                                &nbsp;
                            </td>
                            <td colspan="3">
                                &nbsp;
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2">
                                <asp:Label ID="Label5" runat="server" CssClass="notice" Text="تاریخ را باید به صورت (روز/ ماه /سال  )وارد کنید "
                                    Font-Size="Small"></asp:Label>
                            </td>
                            <td colspan="2">
                                &nbsp;
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2">
                                &nbsp;
                            </td>
                            <td colspan="2">
                                &nbsp;
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2">
                                &nbsp;
                            </td>
                            <td colspan="2">
                                &nbsp;
                            </td>
                        </tr>
                        <tr>
                            <td>
                                &nbsp;
                            </td>
                            <td colspan="2">
                              
                            </td>
                            <td>
                                &nbsp;
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Label ID="Label20" runat="server" Text="تاریخ :" Font-Size="10pt"></asp:Label>
                            </td>
                            <td colspan="2">
                                <asp:TextBox ID="TextBox1" runat="server" Width="150px" CssClass="datePicker"></asp:TextBox>

                                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="TextBox1"
                                    ErrorMessage="*"></asp:RequiredFieldValidator>
                            </td>
                            <td>
                                &nbsp;
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Label ID="Label21" runat="server" Font-Names="tahoma" Font-Size="Small" Text="توضیحات این مرحله"
                                    Width="130px"></asp:Label>
                            </td>
                            <td colspan="2">
                                <asp:Label ID="LblDesc" runat="server" Font-Names="tahoma" Font-Size="Small"></asp:Label>
                            </td>
                            <td>
                                &nbsp;
                            </td>
                        </tr>
                        <tr>
                            <td>
                                &nbsp;
                            </td>
                            <td colspan="2">
                                &nbsp;
                            </td>
                            <td>
                                &nbsp;
                            </td>
                        </tr>
                        <tr>
                            <td>
                                &nbsp;
                            </td>
                            <td colspan="2">
                                <asp:Button ID="ButtonCancelAdmin" CausesValidation="False" runat="server" CssClass="MainObject"
                                    Height="28px" OnClick="ButtonCancelAdmin_Click" Text="جستجوی مجدد" Width="107px" />
                            </td>
                            <td>
                                <asp:Label ID="Lblstatus" runat="server"></asp:Label>
                            </td>
                        </tr>
                    </table>
                </asp:View>
            </asp:MultiView>
            <asp:GridView ID="GridViewContracts2" runat="server" AutoGenerateColumns="False"
                CellPadding="4" CssClass="MainObject tablesorter" DataKeyNames="ID" EnableModelValidation="True" 
                ForeColor="#333333" GridLines="None" OnRowCommand="GridViewContracts2_RowCommand" OnPreRender="GridViewContracts2_PreRender"
                OnRowDataBound="GridViewContracts2_RowDataBound" EmptyDataText="هیچ قرادادی برای فرد یا روستای مورد نظر شما یافت نشد.">
                <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                <Columns>
                    <asp:BoundField DataField="ContractNumber" HeaderText="شماره قرارداد" ItemStyle-Width="100"
                        ItemStyle-Height="50">
                        <ItemStyle Height="50px" Width="100px" />
                    </asp:BoundField>
                    <asp:BoundField DataField="ContractDate" HeaderText="تاریخ قرارداد" ItemStyle-Width="100"
                        ItemStyle-Height="50">
                        <ItemStyle Height="50px" Width="100px" />
                    </asp:BoundField>
                    <asp:BoundField DataField="AdvisorName" HeaderText="نام مشاور" ItemStyle-Width="100"
                        ItemStyle-Height="50">
                        <ItemStyle Height="50px" Width="100px" />
                    </asp:BoundField>
                    <asp:BoundField DataField="ContractType" HeaderText="نوع قراداد" ItemStyle-Width="100"
                        ItemStyle-Height="50">
                        <ItemStyle Height="50px" Width="100px" />
                    </asp:BoundField>
                    <asp:BoundField DataField="Year" HeaderText="سال قراداد" ItemStyle-Width="100" ItemStyle-Height="50">
                        <ItemStyle Height="50px" Width="100px" />
                    </asp:BoundField>
                    <asp:BoundField HeaderText="روستا" />
                    <asp:BoundField HeaderText="دهستان" />
                    <asp:BoundField HeaderText="بخش" />
                    <asp:BoundField HeaderText="شهرستان" />
                    <asp:BoundField DataField="UserId" />
                    <asp:BoundField DataField="ID" Visible="False" />
                    <asp:BoundField DataField="VillageId" />                    
                    <asp:ButtonField CommandName="Select" Text="انتخاب" ItemStyle-Width="100" />
                    <%-- <asp:TemplateField HeaderText="بخش">
                                <ItemTemplate>
                                    <asp:Label ID="Label5" runat="server" Text="Label"></asp:Label>
                                </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="دهستان"></asp:TemplateField>
                                <asp:TemplateField HeaderText="شهرستان"></asp:TemplateField>--%>
                </Columns>
                <EditRowStyle BackColor="#999999" />
                <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                <RowStyle BackColor="#CCCCFF" ForeColor="#333333" />
                <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
            </asp:GridView>
        </ContentTemplate>
    </uc3:Holder1>
    <%--OnClick="Multifileupload1_click"--%>
        <script type="text/javascript">
            $(document).ready(function () {
                $('[id$=GridViewContracts2]').tablesorter();
            });
    </script>
</asp:Content>
